<div class="modal fade" id="update-role-dialog" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content" >
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
					&times;
				</button>
				<h4 class="modal-title" id="myModalLabel">
					修改角色
				</h4>
			</div>
			<div class="modal-body" style="max-height: 600px;overflow: auto;">
				 <form class="bs-example bs-example-form form-horizontal" role="form">
					<div class="form-group">
						<div class="col-sm-1"></div>
						<label for="firstname" class="col-sm-2 control-label"><font class="tip-red">*</font>角色名称</label>
						<div class="col-sm-8">
							<input type="hidden" class="form-control" id="rId" value="${item.rId!}">
							<input type="text" class="form-control" id="rName" placeholder="角色名称" value="${item.rName}">
							<span id="rNameSpan" class="tip-red"></span>
						</div>
						<div class="col-sm-1"></div>
					</div>
					<div class="form-group">
						<div class="col-sm-1"></div>
						<label for="firstname" class="col-sm-2 control-label">角色描述</label>
						<div class="col-sm-8">
							<input type="text" class="form-control" id="rDesc" placeholder="角色描述" value="${item.rDesc}">
						</div>
						<div class="col-sm-1"></div>
					</div>
					<div class="form-group">
						<div class="col-sm-1"></div>
						<label for="firstname" class="col-sm-2 control-label">状态</label>
						<div class="col-sm-8">
							<#if item.rStatus == 1>
							<label class="radio-inline">
								<input type="radio" name="rStatus" value="1" checked>正常
							</label>
							<label class="radio-inline">
								<input type="radio" name="rStatus" value="0">停用
							</label>
							<#else>
							<label class="radio-inline">
								<input type="radio" name="rStatus" value="1" >正常
							</label>
							<label class="radio-inline">
								<input type="radio" name="rStatus" value="0" checked>停用
							</label>
							</#if>
						</div>
						<div class="col-sm-1"></div>
					</div>
					<div class="form-group">
						<h4 class="modal-title">
							权限列表
						</h4>
					</div>
					<#list privileges as privilege>
					<div class="row">
						<div class="col-sm-1"></div>
						<label for="firstname" class="col-sm-10 checkbox-inline">
							<input type="checkbox" value="${privilege.pId!}" id="${privilege.pId!}">${privilege.pName!}
						</label>
						<div class="col-sm-1"></div>
					</div>
					</#list>
			    </form>
			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-primary" id="save-button" onclick="Role.updateRole()">
					保存
				</button>
				<button type="button" class="btn btn-default" data-dismiss="modal">
					关闭
				</button>
			</div>
		</div><!-- /.modal-content -->
	</div><!-- /.modal -->
</div>
